package com.bang.daybreak.dept.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.bang.daybreak.common.framework.model.convert.Convert;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author wangdejian
 * @since 2019-11-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_dept")
public class SysDept extends Convert {

private static final long serialVersionUID=1L;

    /**
     * 部门主键id 
     */
    @TableId(value = "dept_id", type = IdType.AUTO)
    private Integer deptId;

    /**
     * 父级部门id，顶级父级部门id为0
     */
    private String pDeptId;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 排序
     */
    private Integer sort;

    /**
     *  当前登录用户编号
     */
    private String createUser;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     *  更新登录用户编号
     */
    private String updateUser;

    /**
     *  更新时间
     */
    private LocalDateTime updateTime;


    public static final String DEPT_ID = "dept_id";

    public static final String P_DEPT_ID = "p_dept_id";

    public static final String DEPT_NAME = "dept_name";

    public static final String SORT = "sort";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
